package com.tyk.bookstore.front.member.constant;

public class MemberValidConstant {
    public static final int ACCOUNT_MIN_LENGTH = 4;
    public static final int ACCOUNT_MAX_LENGTH = 20;
    public static final String ACCOUNT_REGEXP = "^[0-9a-zA-Z]{4,20}$";
    public static final int AGE_MIN_VALUE = 0;
    public static final int AGE_MAX_VALUE = 127;
    public static final int AVATAR_MIN_LENGTH = 33;
    public static final int AVATAR_MAX_LENGTH = 2048;
    public static final String AVATAR_REGEXP = "^(http://116.196.82.50:9000/forum/).*";
    public static final int EMAIL_MIN_LENGTH = 4;
    public static final int EMAIL_MAX_LENGTH = 60;
    public static final String EMAIL_REGEXP = "\\w[-\\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\\.)+[A-Za-z]{2,14}";
    public static final int ID_CARD_MIN_LENGTH = 15;
    public static final int ID_CARD_MAX_LENGTH = 20;
    public static final String ID_CARD_REGEXP = "\\d{17}[\\d|x]|\\d{15}";
    public static final int NAME_MIN_LENGTH = 2;
    public static final int NAME_MAX_LENGTH = 20;
    public static final String NAME_REGEXP = "(^[\\u4e00-\\u9fa5]{2,4}$)|(^[a-zA-Z]{1,20}$)";
    public static final int PASSWORD_MIN_LENGTH = 4;
    public static final int PASSWORD_MAX_LENGTH = 20;
    public static final String PASSWORD_REGEXP = "^[A-Za-z0-9]+$";
    public static final int PAYMENT_PASSWORD_MIN_LENGTH = 6;
    public static final int PAYMENT_PASSWORD_MAX_LENGTH = 6;
    public static final String PAYMENT_PASSWORD_REGEXP = "^[0-9]*$";
    public static final int PHONE_MIN_LENGTH = 11;
    public static final int PHONE_MAX_LENGTH = 11;
    public static final String PHONE_REGEXP = "(13|14|15|18|17)[0-9]{9}";
    public static final int ADDRESS_NAME_MIN_LENGTH = 1;
    public static final int ADDRESS_NAME_MAX_LENGTH = 8;
    public static final int CONSIGNEE_NAME_MIN_LENGTH = 1;
    public static final int CONSIGNEE_NAME_MAX_LENGTH = 24;
    public static final int ADDRESS_MIN_LENGTH = 1;
    public static final int ADDRESS_MAX_LENGTH = 48;
    public static final int NICKNAME_MIN_LENGTH = 1;
    public static final int NICKNAME_MAX_LENGTH = 12;
    public static final String NICKNAME_REGEXP = "^[\\u4e00-\\u9fa5_a-zA-Z0-9]+$";
    public static final int CODE_MIN_LENGTH = 1;
    public static final int CODE_MAX_LENGTH = 8;
    public static final String CODE_REGEXP = "^[0-9]*$";
}
